#!/bin/bash
if [ $# -ne 5 ] 
then
    echo "parameters are: [numThreads] [msTime] [numRounds] [numClients]   [buffSize]"
    exit -1;
fi
numThreads=$1
msTime=$2
numRounds=$3
numClients=$4
bufferSize=$5
for ((c = 0; c < $numClients; c++))
do
    ./client $numThreads $msTime $c $numRounds $bufferSize &
done
sleep 1
./server $bufferSize &
wait
